<template>
	<view>
		<view class="flex align-center justify-between px-2">
			<text class="font-md">热门分类</text>
			<view class="font align-center text-secondary animated" hover-class="jello" @click="openMore">
				更多
				<text class="iconfont icon-jinru"></text>
			</view>
		</view>
		<view class="flex align-center justify-between border-bottom py-3 px-2">
			<view class="border rounded bg-light px-2 mx-1 animated" hover-class="jello" v-for="(item,index) in hotCate" :key="index"
			 @click="openDetail(item)">{{item.name}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: ['hotCate'],
		data() {
			return {

			};
		},
		methods: {
			// 更多
			openMore() {
				// 跳转到话题分类页
				uni.navigateTo({
					url: '../../pages/topic-nav/topic-nav'
				});
			},
			openDetail(item) {
				console.log("打开话题分类页")
			}
		}
	}
</script>

<style>

</style>
